package nin.ja;

public class RenderComponent extends Component{
	private RenderQueue renderQueue; // this is HORRIBLE...obviously changing though
	private DrawableObject drawable;
	
	
	public RenderComponent(RenderQueue rq, GameObject parent, DrawableObject d){
		super(parent); // fix later
		renderQueue = rq;
		drawable = d;
	}

	@Override
	public void update(float delta) {
		// Get drawable object and position vector
		// Add to drawQueue using 
		Vector position = parent.getPosition();
		renderQueue.add(drawable, position);
	}

	@Override
	public void reset() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void onMessage(float delta, Message message) {
		// TODO Auto-generated method stub
		
	}

}
